package com.example.keshe0337.utils;

public class Checker {
    private static final String PLATE_REGEX = "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵青藏川宁琼粤港澳使领]{1}[A-Z]{1}[A-Z0-9]{5}$";

    public static boolean isValidPlate(String plate) {
        if (plate == null || plate.length() != 7) return false;
        return plate.matches(PLATE_REGEX);
    }
}
